package main

import (
	_ "fyouku/routers"
	"github.com/astaxie/beego"
	"github.com/astaxie/beego/orm"
	_"github.com/go-sql-driver/mysql"
)

func main() {
	defaultdb:=beego.AppConfig.String("defaultdb")
	orm.RegisterDriver("mysql",orm.DRMySQL)
	orm.RegisterDataBase("default","mysql",defaultdb)

	beego.Run()
}

